package com.ymttest.database.mapping.orderrisk;

import com.ymttest.database.model.orderrisk.HighRiskProduct;
import com.ymttest.database.model.orderrisk.HighRiskProductExample;
import com.ymttest.database.model.orderrisk.HighRiskSeller;
import com.ymttest.database.model.orderrisk.HighRiskSellerExample;

import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface HighRiskMapper {
  

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table high_risk_product
     *
     * @mbggenerated Mon Nov 23 18:32:54 CST 2020
     */
    @DeleteProvider(type=HighRiskProductSqlProvider.class, method="deleteByExample")
    int deleteHighRiskProduct(HighRiskProductExample example);


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table high_risk_product
     *
     * @mbggenerated Mon Nov 23 18:32:54 CST 2020
     */
    @InsertProvider(type=HighRiskProductSqlProvider.class, method="insertSelective")
    int insertHighRiskProduct(HighRiskProduct record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table high_risk_product
     *
     * @mbggenerated Mon Nov 23 18:32:54 CST 2020
     */
    @SelectProvider(type=HighRiskProductSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="product_id", property="product_id", jdbcType=JdbcType.VARCHAR),
        @Result(column="bad_comment_rate", property="bad_comment_rate", jdbcType=JdbcType.DECIMAL),
        @Result(column="refund_rate", property="refund_rate", jdbcType=JdbcType.DECIMAL),
        @Result(column="data_effective_date", property="data_effective_date", jdbcType=JdbcType.VARCHAR),
        @Result(column="add_time", property="add_time", jdbcType=JdbcType.TIMESTAMP)
    })
    List<HighRiskProduct> selectHighRiskProduct(HighRiskProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table high_risk_product
     *
     * @mbggenerated Mon Nov 23 18:32:54 CST 2020
     */
    @UpdateProvider(type=HighRiskProductSqlProvider.class, method="updateByExampleSelective")
    int updateHighRiskProduct(@Param("record") HighRiskProduct record, @Param("example") HighRiskProductExample example);
    
    @DeleteProvider(type=HighRiskSellerSqlProvider.class, method="deleteByExample")
    int deleteHighRiskSeller(HighRiskSellerExample example);
    
    @InsertProvider(type=HighRiskSellerSqlProvider.class, method="insertSelective")
    int insertHighRiskSeller(HighRiskSeller record);
}